package controllor

import (
	"fitness/internal/service"
	"fitness/pkg/middleware"
	"github.com/gin-gonic/gin"
)

type LogController struct {
	LogService *service.LogService
}

func NewLogController(LogService *service.LogService) *LogController {
	return &LogController{
		LogService: LogService,
	}
}

func (api *LogController) InitApiRouter(engine *gin.Engine) {
	Group := engine.Group("/logs")
	{
		Group.GET("/page", middleware.Jwt, api.LogService.ListPagedLogs)
	}
}
